/*-------------------------------------
	       Admin 2010
	    By Scooby, 2010
-------------------------------------*/
local PLUGIN = {}
PLUGIN.Name = "Menu"
PLUGIN.Author = "Scooby"
PLUGIN.Command = "menu"
PLUGIN.Group = 2


function PLUGIN:Main( ply, args )
	umsg.Start( "#Admin_MENU", ply )
	umsg.End()
end

if( CLIENT ) then

usermessage.Hook( "#Admin_MENU", function()
	vgui.Create( "spl_adminmenu" )
end)

function spl.LoadMenu()
	local files = file.FindInLua( "splugins_menu/*.lua" )
	for _,v in ipairs( files ) do
		include( "splugins_menu/"..v )
	end
end
hook.Add( "Initialize", "StartupLoadMenu", spl.LoadMenu)

end

spl:AddPlugin( PLUGIN )